package o;

import android.content.Context;
import com.huawei.gameassistant.buoysettingmodule.BuoyResult;
import com.huawei.hmf.orb.exception.ConnectRemoteException;
import o.fho.b;

class bgj$5 implements b {
    final /* synthetic */ bgj ˊ;
    final /* synthetic */ ffa ˋ;
    final /* synthetic */ Context ˏ;
    final /* synthetic */ String ॱ;

    bgj$5(bgj o_bgj, String str, Context context, ffa o_ffa) {
        this.ˊ = o_bgj;
        this.ॱ = str;
        this.ˏ = context;
        this.ˋ = o_ffa;
    }

    public void ˏ(ffd o_ffd, ConnectRemoteException connectRemoteException) {
        if (connectRemoteException != null) {
            Logger.ˋ("GameModeProxy", "connect com.huawei.gameassistant exception", connectRemoteException);
            return;
        }
        fhz ˋ = o_ffd.ˋ("buoysettingmodule");
        if (ˋ == null) {
            Logger.e("GameModeProxy", "Module buoysettingmodule is null");
            return;
        }
        eyb o_eyb = (eyb) ˋ.ॱ(eyb.class);
        if (o_eyb == null) {
            Logger.e("GameModeProxy", "buoyWindowManager is null");
            return;
        }
        try {
            o_eyb.ˎ(this.ॱ).ˏ(new fke<BuoyResult>(this) {
                final /* synthetic */ bgj$5 ˊ;

                {
                    this.ˊ = r1;
                }

                public /* synthetic */ void ॱ(Object obj) {
                    ˊ((BuoyResult) obj);
                }

                public void ˎ(fkg o_fkg) {
                }

                public void ˊ(BuoyResult buoyResult) {
                    bgj.ˊ(this.ˊ.ˊ, this.ˊ.ˏ, buoyResult);
                }

                public void ˊ(Exception exception) {
                    this.ˊ.ˋ.ॱ();
                }

                public void ॱ() {
                    this.ˊ.ˋ.ॱ();
                }
            });
        } catch (Exception e) {
            Logger.e("GameModeProxy", "showAchievementWindow exception");
        }
    }
}
